package com.highper.gateway.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.highper.common.entity.po.application.AppUser;
import com.highper.common.entity.vo.LoginVo;

import java.util.Map;

/**
 * @Author ZhangGJ
 * @Date 2022/01/25 09:34
 */
public interface IAuthService extends IService<AppUser> {

    /**
     * 登录
     *
     * @param loginVo
     * @return
     */
    String login(LoginVo loginVo);

    /**
     * 注销登录
     *
     * @return
     */
    boolean logout();

    /**
     * 登录状态
     *
     * @return
     */
    Map<String, Boolean> loginStatus();

    /**
     * 查询 Token 信息
     *
     * @return
     */
    SaTokenInfo tokenInfo();
}
